﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucCustomerResponsesList.ascx.cs"
    Inherits="Modules_WebsiteBackEnd_wucCustomerResponsesList" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:UpdatePanel ID="UpdatePanelList" runat="server">
    <ContentTemplate>

        <script type="text/javascript">
          function MultiRowSelected(index)
          {
            __doPostBack("<%= this.UniqueID %>", "MultiRowSelected");
          }
        </script>

        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790px" class="TableGrayBorder">
            <tbody>
                <tr>
                    <td height="35" class="ToolbarText" align="left" valign="Middle">
                        QUẢN LÝ PHẢN HỒI KHÁCH HÀNG
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <telerik:RadGrid ID="rgrdGridDataList" runat="server" Skin="WebBlue" Width="790px"
                            PageSize="20" AllowMultiRowSelection="true" AllowPaging="True" ShowGroupPanel="false"
                            AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                            BorderWidth="0px" GridLines="None" AutoGenerateColumns="false" OnPageIndexChanged="rgrdGridDataList_PageIndexChanged"
                            AllowSorting="false" OnItemCommand="rgrdGridDataList_ItemCommand">
                            <ClientSettings EnablePostBackOnRowClick="True">
                                <Selecting AllowRowSelect="True" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="Trang sau" NextPageToolTip="Trang sau"
                                PagerTextFormat="Lựa chọn trang: {4} &amp;nbsp;Trang {0} / {1}, bản ghi {2} - {3} / {5}."
                                PrevPagesToolTip="Trang trước" PrevPageToolTip="Trang trước" />
                            <MasterTableView DataKeyNames="CustomerResponseId" GridLines="Both">
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Resizable="False" Visible="False">
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <EditFormSettings>
                                    <PopUpSettings ScrollBars="None" />
                                </EditFormSettings>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="CustomerResponseId" HeaderText="ID" ReadOnly="True"
                                        UniqueName="CustomerResponseId">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="20px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CustomerName" HeaderText="NAME" UniqueName="CustomerName"
                                        ReadOnly="true" ItemStyle-HorizontalAlign="center">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle Width="50" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CustomerEmail" HeaderText="EMAIL" UniqueName="CustomerEmail"
                                        ReadOnly="true">
                                        <HeaderStyle HorizontalAlign="center" />
                                        <ItemStyle Width="50" HorizontalAlign="center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Job" HeaderText="NGHỀ NGHIỆP" UniqueName="Job"
                                        ReadOnly="true">
                                        <HeaderStyle HorizontalAlign="center" />
                                        <ItemStyle Width="50" HorizontalAlign="Justify" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Address" HeaderText="ĐỊA CHỈ" UniqueName="Address"
                                        ReadOnly="true">
                                        <HeaderStyle HorizontalAlign="center" />
                                        <ItemStyle Width="100" HorizontalAlign="Justify" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PhoneNumber" HeaderText="SỐ ĐIỆN THOẠI" UniqueName="PhoneNumber"
                                        ReadOnly="true">
                                        <HeaderStyle HorizontalAlign="center" />
                                        <ItemStyle Width="50" HorizontalAlign="Justify" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridClientSelectColumn UniqueName="SelectRow" CommandName="RowClick">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="25px" />
                                    </telerik:GridClientSelectColumn>
                                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/icons/newspreview_small.png"
                                        UniqueName="NewsPreview" CommandName="RowPreview" Text="Xem">
                                        <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" Width="24px" />
                                    </telerik:GridButtonColumn>
                                    <telerik:GridButtonColumn ConfirmText="Bạn có muốn xóa bản ghi được lựa chọn?" ConfirmDialogType="RadWindow"
                                        ConfirmTitle="X&#243;a bản ghi" ButtonType="ImageButton" CommandName="RowDelete"
                                        Text="X&#243;a" ImageUrl="~/Images/icons/recyclebin.png" UniqueName="SubjectDelete">
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="25px" />
                                    </telerik:GridButtonColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </tbody>
        </table>
        <!--PREVIEW POPUP==============================================================-->
        <telerik:RadWindowManager Visible="true" ID="rwdmanager" Skin="Vista" VisibleOnPageLoad="false"
            runat="server">
            <Windows>
                <telerik:RadWindow ID="previewwindow" runat="server" Skin="Vista" Width="750px" Height="500px"
                    Title="Xem bản tin">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <!--PREVIEW POPUP==============================================================-->
    </ContentTemplate>
</asp:UpdatePanel>
